{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import cv2\n",
    "import matplotlib.pyplot as plt\n",
    "import numpy as np"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 准备空白页面"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "img = np.zeros((200, 300), dtype=np.uint8)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD8CAYAAABXe05zAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAPUUlEQVR4nO3df6zddX3H8edrpZSIEKi4pgEcxVQTWbaKN2AyJWydCmRZZX+wkkWZkl1NJNFky4KaTLL9sznRxGzDlNiAiyuYKcIfuMEaI1kyKkVrLSBQsIZ2tVW6WKOuFnjvj/u983A9t/f2/PD0c+/zkZyc7/fz/fX+5NO+8j2f+z05qSokSe34tUkXIEk6OQa3JDXG4JakxhjcktQYg1uSGmNwS1JjxhbcSa5K8mSSvUluHtd1JGm5yTie406yAngKeBuwH3gEuL6qHh/5xSRpmRnXHfdlwN6qeraqfg7cBWwa07UkaVk5bUznPR94rmd9P3D5fDufnlV1BmeOqRRJas//8hN+XsfSb9u4gntBSaaBaYAzeAWXZ+OkSpGkU86O2j7vtnFNlRwALuxZv6Br+39VtaWqpqpqaiWrxlSGJC094wruR4D1SdYlOR3YDNw3pmtJ0rIylqmSqnohyU3AvwMrgK1V9dg4riVJy83Y5rir6n7g/nGdX5KWK785KUmNMbglqTEGtyQ1xuCWpMYY3JLUGINbkhpjcEtSYwxuSWqMwS1JjTG4JakxBrckNcbglqTGGNyS1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sBu6bcE0DS3JmkrNml4G3A3uY6dMN3W43APdOpsKhzdeP+4B3d08pvBn4Uc9H8ybMmdu9lplxg5m+bU6yKsk6YD3w9V91fYuRJMBngSeq6pM9m5oet/n6tRTGbGCT/usoM3/ZfoqZv/x+dNL1DNmXi5n5a/a3gMdm+wO8CtgOPA38B7B60rUuoi/bmPn4eZyZOcIb5+sHM08l/GM3ht8GpiZd/wB9++eu9t3M/Mdf27P/R7u+PQlcPen6T9CvtzAzDbIb2NW9rml93E7Qr+bHbNCX35yUpMZMeqpEknSSDG5JaozBLUmNMbglqTEGtyQ1xuCWpMYY3JLUGINbkhrzf2nqXoiZhYJrAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.imshow(img)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 用OpenCV画矩形"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD8CAYAAABXe05zAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAPW0lEQVR4nO3df6xfdX3H8edrpZSIEKi4pgKOQqqJLtsVb8BkStiY8iOLlf3BShZljuxqIokmWxbUZJL9tTnRxGzDlNiAiyvoECULTlljJEsGUrTWAgIFa2hXW0cXMepqgff+uOfOL9d7e2+/P/z2c7/PR3LyPedzzvme9yef8sr5fu758k1VIUlqx6+NuwBJ0vExuCWpMQa3JDXG4JakxhjcktQYg1uSGjOy4E5yRZLHk+xJcuOoriNJkyajeI47ySrgCeCtwD7gIeDaqnp06BeTpAkzq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gceAs2l83I7Rr8U0M2b9Gndwnw0807O9j2MPSAsK+GqSh5PMdG3rqupAt/4DYN14ShvYYv1YKeN4QzdlsLVnOqvJviU5D3gD8CAraNzm9QtW0Jgdj3EH90r05qq6ELgSeF+SS3p31uxnueYf5Vkp/ehxC3ABMAUcAG4ebzn9S/Jy4C7gA1X1XO++lsdtgX6tmDE7XuMO7v3AuT3b53Rtzaqq/d3rIeBuZj+iHZz7CNq9HhpfhQNZrB/Nj2NVHayqF6rqReBWfvHRuqm+JVnNbLh9tqq+0DU3P24L9WuljFk/xh3cDwEbk2xIcjKwGbhnzDX1LcmpSU6bWwfeBuxmtk/XdYddB3xpPBUObLF+3AO8q3tK4U3Aj3o+mjdh3tzu1cyOG8z2bXOSNUk2ABuBb/yq61uOJAE+DTxWVR/v2dX0uC3Wr5UwZn0b919Hmf3L9hPM/uX3w+OuZ8C+nM/sX7O/DTwy1x/gFcB24Eng34G14651GX3ZxuzHz6PMzhFev1g/mH0q4R+6MfwOMD3u+vvo2z91te9i9j/89T3Hf7jr2+PAleOu/xj9ejOz0yC7gJ3dclXr43aMfjU/Zv0ufnNSkhoz7qkSSdJxMrglqTEGtyQ1xuCWpMYY3JLUGINbkhpjcEtSYwxuSWrM/wFA6kyuXZHVaAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "x1 = 40\n",
    "y1 = 60\n",
    "x2 = 100\n",
    "y2 = 150\n",
    "img2 = cv2.rectangle(img.copy(), (x1, y1), (x2, y2), (255), -1)\n",
    "plt.imshow(img2)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 用matplotlib画矩形并添加文字"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD8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mq/qKP2wHGVfwx6+mt2WfcZwKrMvO5zHwLuBOY1uSaesM04JZq+RbgkibW0i2Z+QiwaZ/mzsYxDbg12z0KDI2IUe9OpQevk7F1ZhpwZ2Zuz8zngVW0/94ecjJzfWb+plp+A3gGGE3hx+0A4+pMMcesp5od3KOBtTWP2zjwASlBAj+NiMcjYk7VNjIz11fLLwMjm1Na3TobR185jtdWUwbzaqazihxbRIwHTgcW04eO2z7jgj50zA5Gs4O7LzorM88ALgSuiYhzaldm+2u54i/l6SvjqHETMBGYDKwHbmhuOT0XEUcD9wBfzszNtetKPm4djKvPHLOD1ezgXgecVPN4TNVWrMxcV91vBBbQ/hJtw56XoNX9xuZVWJfOxlH8cczMDZm5KzN3AzfzzkvrosYWEYNoD7fbM/Peqrn449bRuPrKMeuJZgf3Y8CkiGiJiMHAZcADTa6pxyLiqIg4Zs8y8AlgOe1jurLqdiVwf3MqrFtn43gA+Fx1lcKHgddrXpoXYZ+53em0HzdoH9tlETEkIlqAScCv3+36uiMiAvge8Exm/lXNqqKPW2fj6gvHrMea/e4o7e9sP0v7O79fb3Y9dY5lAu3vZj8JPLVnPMB7gEXASuCfgeHNrrUbY7mD9pefO2ifI5zd2ThovyrhO9Ux/C3Q2uz6ezC2+VXty2j/wx9V0//r1dhWABc2u/4DjOss2qdBlgFLq9tFpR+3A4yr+GPW05ufnJSkwjR7qkSSdJAMbkkqjMEtSYUxuCWpMAa3JBXG4JakwhjcklQYg1uSCvP/AYadP5ZtlfyBAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = plt.subplots()\n",
    "ax.imshow(img)\n",
    "\n",
    "x = 100\n",
    "y = 40\n",
    "w = 50\n",
    "h = 60\n",
    "\n",
    "ax.add_patch( plt.Rectangle((x, y), w, y, fill=False, edgecolor='red', linewidth=3.5) )\n",
    "ax.text(x, y - 5, 'AAAAA', bbox=dict(facecolor='blue', alpha=0.5), fontsize=14, color='white')\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 用matplotlib画多边形"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD8CAYAAABXe05zAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAATIElEQVR4nO3df6zd9X3f8ecLsC/BgWACogRIgdRtk7SZQ1yItoSQ0aRA05Lsjw40dTRjciKFqZm2dWSZFFRpWteNZqrSUhnFCpkiaLdCglTSwlBbVGUhmNQxhgQw1Aw7js2PgCkO5td7f9zvbQ/evfb1Pff6+/3c83xIR/ecz/f8eH/0tV86933f595UFZKkdhzVdwGSpMNjcEtSYwxuSWqMwS1JjTG4JakxBrckNWbJgjvJxUkeSrItyTVL9TqSNGmyFHPcSY4GHgY+BOwA7gWuqKoHF/3FJGnCLNU77vOAbVX1WFW9BNwMXLZEryVJE+WYJXre04EnRm7vAM6f684rM1XHsmqJSpGk9rzIC7xU+zPbsaUK7kNKsh5YD3Asx3F+LuqrFEkanHvqrjmPLVWrZCdw5sjtM7q1v1NVG6pqXVWtW8HUEpUhScvPUgX3vcCaJGcnWQlcDty2RK8lSRNlSVolVfVKkquBPwOOBjZW1QNL8VqSNGmWrMddVbcDty/V80vSpPKTk5LUGINbkhpjcEtSYwxuSWqMwS1JjTG4JakxBrckNcbglqTGGNyS1BiDW5IaY3BLUmMMbklqjMEtSY0xuCWpMQa3JDXG4JakxhjcktQYg1uSGrPg4E5yZpI/T/JgkgeS/Hq3fm2SnUk2d5dLF69cSdI4f3PyFeDfVNW3kxwP3Jfkzu7Y56vqv41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tM7q1ZlXVzu7rHuBWpr9F2z3zLWj3dU9/FY5lrn00fx6randVvVpVrwE38PffWje1tyQrmA63r1TVLd1y8+dttn0tl3O2EH0H973AmiRnJ1kJXA7c1nNNC5ZkVZLjZ64DHwa2Mr2nK7u7XQl8rZ8KxzbXPm4D/nk3pfBe4LmRb82bcEBv92NMnzeY3tvlSaaSnA2sAb51pOubjyQBvgh8t6p+Z+RQ0+dtrn0th3O2YH3/dJTpn2w/zPRPfj/bdz1j7uUcpn+a/R3ggZn9AG8G7gIeAf43cFLftc5jLzcx/e3ny0z3CK+aax9MTyX8XncO7wfW9V3/Avb2P7ratzD9H/+0kft/ttvbQ8Alfdd/kH29j+k2yBZgc3e5tPXzdpB9NX/OFnrxk5OS1Ji+WyWSpMNkcEtSYwxuSWqMwS1JjTG4JakxBrckNcbglqTGGNyS1Jj/ByXmb1lwngUgAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig, ax = plt.subplots()\n",
    "\n",
    "ax.imshow(img)\n",
    "\n",
    "ax.add_patch(plt.Polygon([[50, 40], [150, 40], [160, 100], [40, 110], [70, 70]], fill=False, color=\"y\"))\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 用matplotlib显示多个图像（方法一）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAaIAAACYCAYAAACmne0QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAJfElEQVR4nO3cT8xddZ3H8ffHghgdiXTQBkujLLrBhZV5g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432x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "tate = 1\n",
    "yoko = 2\n",
    "plt.subplot(tate, yoko, 1)\n",
    "plt.imshow(img)\n",
    "plt.subplot(tate, yoko, 2)\n",
    "plt.imshow(img2)\n",
    "plt.subplots_adjust(left=0.075, bottom=0.05, right=0.95, top=0.95, wspace=0.15, hspace=0.15)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 用matplotlib显示多个图像（方法二）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAACICAYAAAAcc6uGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAJCElEQVR4nO3dT6xcZRnH8e/PAiUgRCraQGkEk25wYSU3hQUxGKIgm+KGlA2NktQFJLqscYGJGzVRExIlqbFpSRQkUUIXKGJjworaarAWsFAR0tbSRmuAaCx/fFzcUxyx7S13Zu6Z8/L9JJM5551zz3nemye/nHNmJpOqQpLUlvf1XYAkafIMd0lqkOEuSQ0y3CWpQYa7JDXIcJekBk0t3JPcnGR/kgNJNk/rONJSsq81FJnG59yTLAOeAz4NHAJ2A7dX1TMTP5i0ROxrDcm0ztzXAQeq6oWqeh14EFg/pWNJS8W+1mCcM6X9rgIOjqwfAq493cbnZXmdz4VTKkXvdf/iH7xeJzKBXb2rvgZ7W9N1pt6eVrgvKMkmYBPA+VzAtbmxr1LUuF21c0mPZ29rqZypt6d1W+YwsHpk/Ypu7G1VtaWq5qpq7lyWT6kMaaIW7GuwtzUbphXuu4E1Sa5Kch6wAdgxpWNJS8W+1mBM5bZMVb2Z5G7gM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LU+mZVdWRqvpdt/wa8CywigHOZUYNqrdb6Wuwt0/qO9xXAQdH1g91Y0OzsqqOdMsvAyu75UHML8mVwCeAXQx8LjOkhf/X4HvhvdzbfYd7c2r+Om8wH0FK8n7gp8CXq+rV0deGNhdNzxB74b3e232H+2Fg9cj6Fd3Y0Bw9eRnXPR/rxmd6fknOZb75f1RVP+uGBzmXGdTC/2uwvWBv9x/uu4E1Sa5Kch6wAdjRc02LsQPY2C1vBB4ZGb+jezf+OuCVkcvCXiUJ8EPg2ar6zshLg5vLjGqhtwfZC/Z2p+93dJl/p/o55j9Z8NW+6zmLeh8AjgBvMH9v7k7gg8BO4HngV8CKbtsA3+vm9gdgru/6R+ZxPfOXpXuBp7rHLUOcy6w+htTbrfR1V5+9XeU3VCWpRX3flpEkTYHhLkkNMtwlqUGGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSg/4D+QhSHyl+rM0AAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "tate = 1\n",
    "yoko = 2\n",
    "fig, axs = plt.subplots(tate, yoko)\n",
    "axs[0].imshow(img)\n",
    "axs[1].imshow(img2)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
